{extend name="../../admin/view/main"}

{block name="button"}
<!--{if auth("retrySync")}-->
<button class='layui-btn layui-btn-sm layui-btn-primary' data-modal="{:url('retrySync')}?date={:input('date', $yesterday)}" data-width="500px">更新</button>
<!--{/if}-->
{/block}

{block name='content'}
<div class="think-box-shadow">
    {include file='report/statistics_daily_power/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line" style="!important;border: 1px solid #009688;">
        {notempty name='list'}
        <thead>
        <tr>
<!--            <th class="text-left nowrap">省份</th>-->
            <th style="!important;border: 1px solid #009688;" class="text-left nowrap">城市</th>
            <th style="!important;border: 1px solid #009688;" class="text-left nowrap" data-tips-text="当日完成施工数量">{$show_date}总产出 <i class="layui-icon layui-icon-tips font-s13"></i></th>
            <th style="!important;border: 1px solid #009688;" class="text-left nowrap" data-tips-text="当日派单日期，且当前施工完成数量">{$show_date}产出 <i class="layui-icon layui-icon-tips font-s13"></i></th>
            <th style="!important;border: 1px solid #009688;" class="text-left nowrap" data-tips-text="当前城市归属中所有未完工工单数量">总未完工数 <i class="layui-icon layui-icon-tips font-s13"></i></th>
            <th style="!important;border: 1px solid #009688;" class="text-left nowrap" data-tips-text="当日完成施工数量-日均去化能力，得出当前缺少施工台数">总差异 <i class="layui-icon layui-icon-tips font-s13"></i></th>
            <th style="!important;border: 1px solid #009688;" class="text-left nowrap" data-tips-text="已完工数/派单总数*100%(已完工为截止到筛选时间已喷漆完成的总数，派单总数为截止到筛选时间派单的总数)">总完工率%<i class="layui-icon layui-icon-tips font-s13"></i></th>
            <th style="!important;border: 1px solid #009688;" class="text-left nowrap" data-tips-text="运满满当日派单数量">派单 <i class="layui-icon layui-icon-tips font-s13"></i></th>
            <th style="!important;border: 1px solid #009688;" class="text-left nowrap" data-tips-text="当前筛选日期中，未完工的工单数量">未完工数 <i class="layui-icon layui-icon-tips font-s13"></i></th>
            <th style="!important;border: 1px solid #009688;" class="text-left nowrap" data-tips-text="截止筛选时间完工数/筛选时间派单数*100%(当前时间-1的时间，tal为时间，完工数为筛选时间段内施工完成的数量，筛选时间派单数为派单总数)">{$show_date}完工率% <i class="layui-icon layui-icon-tips font-s13"></i></th>
            <th style="!important;border: 1px solid #009688;" class="text-left nowrap">未做订单</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>

        {foreach $list as $key=> $vo}
        <tr>
            {if isset($vo['rowspan']) and $vo['rowspan']}
<!--            <td class="text-left nowrap" rowspan="{$vo['rowspan']}">{$vo.from_province|default=''}</td>-->
            {/if}

            <td style="!important;border: 1px solid #009688;" class="text-left nowrap">{$vo.from_city|default='其他城市'}</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap"><!--总产出-->{$vo.complete_count|default=''}</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap"><!--产出-->{$vo.complete_today_count|default=''}</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap"><!--总未完工数-->{$vo.not_complete_count|default=''}</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap"><!--总差异-->{$vo.count_diff|default=''}</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap"><!--总完工率-->{$vo.all_complete_count_rate|default=''}%</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap"><!--派单-->{$vo.record_count|default=''}</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap"><!--未完工数-->{$vo.not_complete_today_count|default=''}</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap"><!--完工率-->{$vo.today_complete_count_rate|default=''}%</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap" >

                {foreach $vo.format_remark as $remark}

                    <p {if $remark.is_complete}class="green-border"{/if}>{$remark.remark}</p>
                {/foreach}

            </td>

            <!--{if isset($vo['rowspan']) and $vo['rowspan']}
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap" rowspan="{$vo['rowspan']}">{$vo.province_complete_count_count|default=''}</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap" rowspan="{$vo['rowspan']}">{$vo.province_record_count|default=''}</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap" rowspan="{$vo['rowspan']}">{$vo.province_group_energy|default=''}</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap" rowspan="{$vo['rowspan']}">{$vo.province_real_diff|default=''}</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap" rowspan="{$vo['rowspan']}"><pre>{$vo.format_remark|default=''}</pre></td>
            {/if}-->
        </tr>
        {/foreach}

        <tr>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap">合计</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap">{$sumList.sum_complete_count|default=0}</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap">{$sumList.sum_complete_today_count|default=0}</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap">{$sumList.sum_not_complete_count|default=0}</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap">{$sumList.sum_diff|default=0}</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap">{$sumList.sum_all_complete_count_rate|default=0}%</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap">{$sumList.sum_record_count|default=0}</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap">{$sumList.sum_not_complete_today_count|default=0}</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap">{$sumList.sum_today_complete_count_rate|default=0}%</td>
            <td style="!important;border: 1px solid #009688;" class="text-left nowrap"></td>
        </tr>
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}

{block name="style"}
<style>
    .green-border {
        border: 1px solid #009688;
        position: relative;
        padding: 0px 0px 20px 0px;
        margin-bottom: 3px;
    }

    .green-border:after {
        content: "已喷漆";
        display: block;
        position: absolute;
        bottom: -1px;
        right: -1px;
        color: green;
        font-size: 9px;
        border: 1px solid green;
    }
</style>
{/block}